<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
<meta content=", {$cfg_site_name}" name="keywords">
<link href="{TPL}css/NewTopFoot.css" rel="Stylesheet" type="text/css">
<link type="text/css" rel="stylesheet" href="{TPL}css/AddItemPanel.css">
<script type="text/javascript" src="{TPL}js/jquery-1.4.1.min.js"></script>
<script type="text/javascript" src="{TPL}js/jQuery.Extend.js"></script>
<script src="{TPL}js/jQuery.Drag.min.js" type="text/javascript"></script>
<script type="text/javascript" src="{TPL}js/jquery.cookies.2.1.0.min.js"></script>
<script src="{TPL}js/Gobal.js" type="text/javascript"></script>
<link type="text/css" rel="stylesheet" href="{TPL}css/Product.css">
<script type="text/javascript" src="{TPL}js/jquery.json-1.3.min.js"></script>
   
    <script type="text/javascript">
        var flag = false;
        var pid = 1;
		var pimg="{$value['goodsimg']}";
        $(document).ready(function() {
            var pname = $.trim($(".you h1").text()).replace("\n","");
            var data = {};
            var newOptions = { domain: '', hoursToLive: 168 };
            try {
                data = $.evalJSON(jaaulde.utils.cookies.get("scan"));
            } catch (eee) {
                data = null;
            }
            if (data != null) {
                data = $.grep(data, function(item, index) { return item["id"] != pid; });
 
                if (data.length >= 10) flag = true;
                $.each(data, function(index, item) {
                    $("#scan").append("<li><a href='recommend.php?action=view&gid=" + item["id"] + "'><img src='" + item["pimg"] + "' alt='" + item["n"] + "'  /></a></li>");
                });
                if (flag) { data = $.grep(data, function(item, index) { return index < 9; }); }
                data = $.merge([{ "id": pid, "pimg": pimg, "n": pname}], data);
                jaaulde.utils.cookies.set("scan", $.toJSON(data), newOptions);
            }
            else {
                jaaulde.utils.cookies.set("scan", '[{"id":' + pid + ',"pimg":"' + pimg +'","n":"' + pname + '"}]', newOptions);
            }
            $(".ph dl").each(function() { $(this).mouseover(function() { $(".ph dl dt").hide(); $(".ph dl dd").show(); $(this).find("dd").hide(); $(this).find("dt").show(); }); });
            $(".ph dl:eq(0)").mouseover();
 

        });
    </script>


<title>
	{$value['goodsname']} - {$cfg_site_name}
</title></head><body>


<form id="" action="###" method="post" name="">

{template 'header'}

    <div class="weizhi">
        <p>
            <b>Your position：</b><a href="{url_recommend.php}">Choice</a>{$position}<span>&gt;</span><i>{$value['goodsname']}</i></p>
    </div>
    <div class="list">
        <div class="zuo">
            <div class="ranking">
                <h2>
                    <img alt="推荐" src="{TPL}images/ranking.gif"></h2>
					
                <div class="ph">
                    
                    {loop $leftarray $key $r}
                    <dl>
                        <dt {if $key==0}style="display: block;"{else}style="display: none;"{/if}>
                            <div class="img">
                                <a target="_blank" href="{url_recommend.php?action=view&gid=$r['gid']}">
                                <img alt="{$r['goodsname']}" src="{$r['goodsimg']}">
                                </a>
                            </div>
                            <div class="xiangxi">
                                <h1>
                                    <b>
                                        {echo $key+1}.</b> <a target="_blank" href="{url_recommend.php?action=view&gid=$r['gid']}">
                                            {substrs($r['goodsname'],45)}</a>
                                </h1>
                                <label>
                                    {$r['goodsprice']}</label>
                                <p>
                                    Source：<span>{$r['shopname']}</span></p>
                            </div>
                        </dt>
                        <dd {if $key==0}style="display: none;"{else}style="display: block;"{/if}>
                            <span>{echo $key+1}</span>
                            <p>
                                <a target="_blank" href="{url_recommend.php?action=view&gid=$r['gid']}">
                                    {substrs($r['goodsname'],45)}</a>
                            </p>
                        </dd>
                    </dl>
					{/loop}

                </div>					
					

            </div>
            <div class="lately" style="display:none">
                <h2>
                    <img alt="您最近浏览过的宝贝" src="{TPL}images/lately.gif"></h2>
                <ul id="scan">
                </ul>
            </div>
        </div>
        <div class="you" id="itemlisttable">
            <h1 id="itemtitle">
               {$value['title']}</h1>
            <div class="product">
                <div class="img">
                    <a href="?pid=8294">
                        <img alt="{$value['pic_url']}" src="{$value['pic_url']}"></a>
                </div>
                <div class="parameter">
                    <div class="pl">
                      <p>Price：</p>
                        <dl>
                            <dt>￥{$value['price']}</dt>
                            
                        </dl>
                    </div>
                    <ul>
                        <li>Type：{$value['type']} Price </li>
                        <li>Item Number：{$value['num_iid']} </li>
                        <li>Time left：{$value['delist_time']}</li>
                        <li>Quantity：<span>{$value['num']}</span></li>
                      <li>Source：<a target="_blank" href="###">{$value['nick']}</a><span>taobao</span></li>
                        <li>Original URL：<a href="http://translate.google.com.hk/translate?js=y&prev=_t&hl=zh-TW&ie=UTF-8&layout=1&eotf=1&u={$value['detail_url']}&cm_cat={$value['cid']}&sl=auto&tl=en">Taobao URL</a></li>
                  </ul>
                    <div class="shopping">
                        <p>
                            Source of information for all commodities other shopping sites, subject to the source site information!</p>
                        <a style="cursor: pointer;" onClick="FastAddShow('{$value['detail_url']}')" id="submitBtn"></a>
                    </div>
                </div>
            </div>
            <div class="reason">
                <h2>
                    Recommended reason</h2>
                    
                <p>
                You will save money on local shipping fee if you purchase different items from the same seller, you can check other listings by the same seller by clicking the name of the seller to the left of the description of an item.
				</p>
            </div>
            <div class="lm">
                <h3>
                    Description</h3>
            </div>
            <div class="miaoshu" id="itemdesc">
				{$value['desc']}
            </div>
        </div>
    </div>
<script type="text/javascript" src="http://www.google.com/jsapi"></script> 
<script> 
function init() {
translateTitle("#itemtitle");
translateTitle("#itemdesc");
}
 
function translateTitle(idname) {
var $title = $(idname);
google.language.translate($title.html(), 'zh-CN', 'en', function(result) {
if (result.translation) {
$title.html(result.translation);
$title.attr("title", result.translation);
}
});
}
google.setOnLoadCallback(init);
google.load("language", "1");
</script>

{template 'footer'}

    </form>

</body>
</html>